package com.ls.controller.startbanner.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

/**
 * @ClassName AddSBannerModel
 * @Description 新增轮播图model
 * @Author pengyu
 * @Date 2024/6/27 17:14
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AddSBannerModel {
    /**
     * 轮播秒数
     */
    @NotNull(message = "轮播秒数不能为空")
    private Integer num;
    /**
     * 轮播图，以逗号分割，不超过5张
     */
    @NotBlank(message = "轮播图不得为空")
    @JsonProperty("sBannerImg")
    private String sBannerImg;
}
